package com.ruoyi.system.client.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.client.mapper.ServiceClientComplaintMapper;
import com.ruoyi.system.client.domain.ServiceClientComplaint;
import com.ruoyi.system.client.service.IServiceClientComplaintService;
import com.ruoyi.common.core.text.Convert;

/**
 * 客户投诉Service业务层处理
 * 
 *@author Administrator
 * @date 2021-03-06
 */
@Service
public class ServiceClientComplaintServiceImpl implements IServiceClientComplaintService 
{
    @Autowired
    private ServiceClientComplaintMapper serviceClientComplaintMapper;

    /**
     * 查询客户投诉
     * 
     * @param id 客户投诉ID
     * @return 客户投诉
     */
    @Override
    public ServiceClientComplaint selectServiceClientComplaintById(Long id)
    {
        return serviceClientComplaintMapper.selectServiceClientComplaintById(id);
    }

    /**
     * 查询客户投诉列表
     * 
     * @param serviceClientComplaint 客户投诉
     * @return 客户投诉
     */
    @Override
    public List<ServiceClientComplaint> selectServiceClientComplaintList(ServiceClientComplaint serviceClientComplaint)
    {
        return serviceClientComplaintMapper.selectServiceClientComplaintList(serviceClientComplaint);
    }

    /**
     * 新增客户投诉
     * 
     * @param serviceClientComplaint 客户投诉
     * @return 结果
     */
    @Override
    public int insertServiceClientComplaint(ServiceClientComplaint serviceClientComplaint)
    {
        return serviceClientComplaintMapper.insertServiceClientComplaint(serviceClientComplaint);
    }

    /**
     * 修改客户投诉
     * 
     * @param serviceClientComplaint 客户投诉
     * @return 结果
     */
    @Override
    public int updateServiceClientComplaint(ServiceClientComplaint serviceClientComplaint)
    {
        return serviceClientComplaintMapper.updateServiceClientComplaint(serviceClientComplaint);
    }

    /**
     * 删除客户投诉对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientComplaintByIds(String ids)
    {
        return serviceClientComplaintMapper.deleteServiceClientComplaintByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除客户投诉信息
     * 
     * @param id 客户投诉ID
     * @return 结果
     */
    @Override
    public int deleteServiceClientComplaintById(Long id)
    {
        return serviceClientComplaintMapper.deleteServiceClientComplaintById(id);
    }
}
